﻿namespace TestUp.Models.ShortEntities
{
    public class ShortTest
    {
        public int TestId { get; set; }
        public int CourseId { get; set; }

        public string TestName { get; set; }

        public virtual ShortCourse Course { get; set; }

        public Test ConvertToEntity()
        {
            var test = EntitiesConverter.ToEntity<Test, ShortTest>(this);
            test.Course = Course.ConvertToEntity();

            return test;
        }
    }
}